import request from '@/utils/request'

// 查询试题主列表
export function listQu(query) {
  return request({
    url: '/business/qu/list',
    method: 'get',
    params: query
  })
}

// 查询试题主所有列表
export function listAllQu(query) {
  return request({
    url: '/business/qu/listAll',
    method: 'get',
    params: query
  })
}

// 查询试题主详细
export function getQu(id) {
  return request({
    url: '/business/qu/getInfo/' + id,
    method: 'get'
  })
}

// 新增试题主
export function addQu(data) {
  return request({
    url: '/business/qu/add',
    method: 'post',
    data: data
  })
}

// 修改试题主
export function updateQu(data) {
  return request({
    url: '/business/qu/edit',
    method: 'post',
    data: data
  })
}

// 删除试题主
export function delQu(id) {
  return request({
    url: '/business/qu/remove/' + id,
    method: 'get'
  })
}
